<template>
  <div>
    <el-button type="backstage" @click="goToBackgroundScreen">后台</el-button>
    <div>首页</div>
    <el-button type="backstage" @click.prevent="test">test</el-button>
  </div>
</template>

<script setup>
import { tests } from '@/api/login';
import router from '@/router';


const goToBackgroundScreen = () => {
  router.replace({ path: '/parentRouter' })
}

const test = () => {
  tests().then(res => {
    console.log(res)
  })
}


</script>

<style scoped>

</style>
